package com.itheima.feign;

import com.itheima.entity.Result;
import com.remark.search.pojo.RemarkImfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "remark")
public interface RemarkInfoFeign {
    /***
     * 分页搜索实现
     * @param page
     * @param size
     * @return
     */
    @GetMapping(value = "/product/searchInfo/{page}/{size}" )
    public List<RemarkImfo> findInfoPage(@PathVariable("page")  int page, @PathVariable("size")  int size);

    /**
     * 获取总数
     * @return
     */
    @GetMapping("/product/count")
    public Integer count();
    /**
     * 根据id获取RemarkImfo
     * @param id
     * @return
     */
    @GetMapping(value = "/product/searchInfo/{id}" )
    public RemarkImfo findInfoById(@PathVariable("id") Integer id);
}
